﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gdzc.aspx.cs" Inherits="Gdzc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>固定资产登记</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body background ="../../images/物资右侧背景.jpg"  style="font-size:9pt">
    <form id="form1" runat="server">
    <div>
        <table style="width: 740px; height: 33px;" align="center">
            
            <tr>
                <td style="width: 147px">
                    固定资产编号</td>
                <td style="width: 158px">
                    <asp:TextBox ID="txtGdzcID" runat="server" Width="154px" Enabled="False"></asp:TextBox></td>
                <td style="width: 158px">
                </td>
                <td style="width: 102px">
                </td>
                <td style="width: 195px">
                </td>
                <td style="width: 166px">
                </td>
            </tr>
            <tr>
                <td style="height: 22px; width: 147px;">
                    物资编码</td>
                <td style="height: 22px; width: 158px;">
                    <asp:LinkButton ID="lnkWzID" runat="server" OnClick="lnkWzID_Click" CausesValidation="False">物资编号</asp:LinkButton></td>
                <td style="width: 158px; height: 22px">
                </td>
                <td style="height: 22px; width: 102px;">
                    供 货 商</td>
                <td style="height: 22px; width: 195px;">
                    <asp:DropDownList ID="ddlCustomer" runat="server" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged">
                        <asp:ListItem>选择供货商</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="height: 22px; width: 166px;">
                    </td>
            </tr>
            <tr>
                <td style="width: 147px">
                    名 称</td>
                <td style="width: 158px">
                    <asp:TextBox ID="txtName" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                <td style="width: 158px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                <td style="width: 102px">
                    地 &nbsp;址</td>
                <td style="width: 195px">
                    <asp:TextBox ID="txtPlace" runat="server"></asp:TextBox></td>
                <td style="width: 166px">
                    </td>
            </tr>
            <tr>
                <td style="width: 147px">
                    型 号</td>
                <td style="width: 158px">
                    <asp:TextBox ID="txtModel" runat="server" Enabled="False"></asp:TextBox></td>
                <td style="width: 158px">
                </td>
                <td style="width: 102px">
                    联系电话</td>
                <td style="width: 195px">
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                <td style="width: 166px">
                    </td>
            </tr>
            <tr>
                <td style="width: 147px">
                    规 格</td>
                <td style="width: 158px">
                    <asp:TextBox ID="txtSpec" runat="server" Enabled="False"></asp:TextBox></td>
                <td style="width: 158px">
                </td>
                <td style="width: 102px">
                    联 系 人</td>
                <td style="width: 195px">
                    <asp:TextBox ID="txtLinkMan" runat="server"></asp:TextBox></td>
                <td style="width: 166px">
                    </td>
            </tr>
            <tr>
                <td style="height: 21px; width: 147px;">
                    品 牌</td>
                <td style="height: 21px; width: 158px;">
                    <asp:TextBox ID="txtCard" runat="server" Enabled="False"></asp:TextBox></td>
                <td style="width: 158px; height: 21px">
                </td>
                <td style="height: 21px; width: 102px;">
                    使用部门</td>
                <td style="height: 21px; width: 195px;">
                    <asp:DropDownList ID="ddlDepartment" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 166px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 147px; height: 28px">
                    单 价</td>
                <td style="width: 158px; height: 28px">
                    <asp:TextBox ID="txtUnitPrice" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                <td style="width: 158px; height: 28px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtUnitPrice"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                <td style="height: 28px; width: 102px;">
                    使 用 人</td>
                <td style="width: 195px; height: 28px">
                    <asp:TextBox ID="txtUsers" runat="server"></asp:TextBox>
                    </td>
                <td style="width: 166px; height: 28px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUsers"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 147px; height: 28px">
                    采购日期</td>
                <td style="width: 158px; height: 28px">
                    <asp:TextBox ID="txtBuyDate" runat="server"></asp:TextBox></td>
                <td style="width: 158px; height: 28px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtBuyDate"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="txtBuyDate"
                        Display="Dynamic" ErrorMessage="CustomValidator"></asp:CustomValidator></td>
                <td style="width: 102px; height: 28px">
                    存储仓库</td>
                <td style="width: 195px; height: 28px">
                    <asp:DropDownList ID="ddlStorePlace" runat="server">
                    </asp:DropDownList></td>
                <td colspan="1" rowspan="1" style="width: 166px">
                </td>
            </tr>
            <tr>
                <td style="width: 147px; height: 16px">
                    采购部门</td>
                <td style="width: 158px; height: 16px">
                    <asp:DropDownList ID="ddlBuyDepartment" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 158px; height: 16px">
                </td>
                <td style="width: 102px; height: 16px">
                    入库日期</td>
                <td style="width: 195px; height: 16px">
                    &nbsp;<asp:TextBox ID="txtStoreDate" runat="server"></asp:TextBox></td>
                <td colspan="1" rowspan="1" style="width: 166px; height: 16px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtStoreDate"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CustomValidator
                        ID="CustomValidator1" runat="server" ControlToValidate="txtStoreDate" Display="Dynamic"
                        ErrorMessage="CustomValidator"></asp:CustomValidator></td>
            </tr>
            <tr>
                <td style="width: 147px; height: 28px">
                    采 购 人</td>
                <td style="width: 158px; height: 28px">
                    <asp:TextBox ID="txtBuyMan" runat="server"></asp:TextBox></td>
                <td style="width: 158px; height: 28px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBuyMan"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                <td style="width: 102px; height: 28px">
                    保 修</td>
                <td style="width: 195px; height: 28px">
                    <asp:TextBox ID="txtRepair" runat="server"></asp:TextBox></td>
                <td colspan="1" rowspan="1" style="width: 166px">
                </td>
            </tr>
            <tr>
                <td style="width: 147px; height: 16px">
                    物资状态</td>
                <td style="width: 158px; height: 16px">
                    <asp:DropDownList ID="ddlState" runat="server">
                        <asp:ListItem>在库</asp:ListItem>
                        <asp:ListItem>在用</asp:ListItem>
                        <asp:ListItem>退伙</asp:ListItem>
                        <asp:ListItem>盘亏</asp:ListItem>
                        <asp:ListItem>保损</asp:ListItem>
                        <asp:ListItem>捐赠</asp:ListItem>
                        <asp:ListItem>报废</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 158px; height: 16px">
                </td>
                <td style="width: 102px; height: 16px">
                </td>
                <td style="width: 195px; height: 16px">
                    <asp:Button ID="btnClick" runat="server" Text="确定" OnClick="btnClick_Click" />
                    <input id="btnReset" type="reset" value="重置" /></td>
                <td colspan="1" rowspan="1" style="width: 166px; height: 16px">
                </td>
            </tr>
            <tr>
            </tr>
        </table>
        </div>
        <table style="width: 718px" align="center">
            <tr>
                <td style="width: 520px; height: 21px">
                    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
                    <table style="vertical-align: top; width: 734px; text-align: left">
    <tr>
        <td rowspan="3" style="width: 90px; height: 148px;">
            <asp:TreeView ID="TreeView1" runat="server" ExpandDepth="0" ImageSet="WindowsHelp"
                OnSelectedNodeChanged="TreeView1_SelectedNodeChanged1" EnableClientScript="False">
                <ParentNodeStyle Font-Bold="False" />
                <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                    VerticalPadding="0px" />
                <RootNodeStyle BorderStyle="None" />
                <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                    NodeSpacing="0px" VerticalPadding="1px" />
            </asp:TreeView>
        </td>
        <td rowspan="2" style="width: 723px; height: 148px;" valign="top">
            <asp:GridView ID="gvStatistic" runat="server" AutoGenerateColumns="False" 
                Width="627px" OnSelectedIndexChanging="gvStatistic_SelectedIndexChanging" BorderColor="Black" BorderWidth="1px" CellSpacing="1">
                <Columns>
                    <asp:BoundField DataField="WzID" HeaderText="物资编号" />
                    <asp:BoundField DataField="WzType" HeaderText="名称" />
                    <asp:BoundField DataField="Name" HeaderText="型号" />
                    <asp:BoundField DataField="Mode" HeaderText="规格" />
                    <asp:BoundField DataField="Spec" HeaderText="品牌" />
                    <asp:BoundField DataField="UnitPrise" HeaderText="单价" />
                    <asp:BoundField DataField="Unit" HeaderText="计量单位" />
                    <asp:BoundField DataField="Type" HeaderText="固定资产" />
                    <asp:CommandField HeaderText="选择" ShowSelectButton="True" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
